package com.guguskins.back.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guguskins.back.entity.GuBox;
import com.guguskins.back.entity.GuGoods;
import com.guguskins.back.entity.GuUser;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @date 2021/6/15 16:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class UserInfoVo {
    private GuUser user;

    private UserLevelVo userLevelVo;

    private GuBox box;

    private GuGoods goods;

    /**
     * 鸡舍时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime henHouseTaskTime;
}
